2d850ffb3d2ea5cbfba718653136e9653966e0fa,java/org/apache/catalina/ha/session/JvmRouteBinderValve.java,JvmRouteBinderValve,startInternal,#,381
Before Change
protected synchronized void startInternal() throws LifecycleException {
if (cluster == null) {
Container hostContainer = getContainer();
// compatibility with JvmRouteBinderValve version 1.1
// ( setup at context.xml or context.xml.default )
if (!(hostContainer instanceof Host)) {
if (log.isWarnEnabled()) {
log.warn(sm.getString("jvmRoute.configure.warn"));
}
hostContainer = hostContainer.getParent();
}
if (hostContainer instanceof Host
&& ((Host) hostContainer).getCluster() != null) {
cluster = (CatalinaCluster) ((Host) hostContainer).getCluster();
} else {
Container engine = hostContainer.getParent() ;
After Change
protected synchronized void startInternal() throws LifecycleException {
if (cluster == null) {
Cluster containerCluster = getContainer().getCluster();
if (containerCluster instanceof CatalinaCluster) {
setCluster((CatalinaCluster)containerCluster);
}
}